package com.hj.learn.demo1;

public class Testjoin implements Runnable{
    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println("VIP来了"+i);
        }
    }

    public static void main(String[] args) {
        Testjoin testjoin = new Testjoin();
        new Thread(testjoin).start();

        for (int i = 0; i < 500; i++) {
            System.out.println("正常排队+++"+i);
            if(i==200){
                testjoin.run();
            }
        }
    }
}
